namespace battlenet.wow.rt.domain.objects
{
    public class WeaponItem : Item
    {
        /// <summary>
        /// Gets or sets the damage.
        /// </summary>
        /// <value>
        /// The damage.
        /// </value>
        public WeaponDamage Damage { get; set; }

        /// <summary>
        /// Gets or sets the weapon speed.
        /// </summary>
        /// <value>
        /// The weapon speed.
        /// </value>
        public double WeaponSpeed { get; set; }

        /// <summary>
        /// Gets or sets the DPS.
        /// </summary>
        /// <value>
        /// The DPS.
        /// </value>
        public double Dps { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="WeaponItem"/> class.
        /// </summary>
        public WeaponItem() { }

        /// <summary>
        /// Initializes a new instance of the <see cref="WeaponItem"/> class.
        /// </summary>
        /// <param name="item">The item.</param>
        public WeaponItem(Item item)
        {
            Id = item.Id;
            Name = item.Name;
            Icon = item.Icon;
            QualityId = item.QualityId;
            ItemLevel = item.ItemLevel;
            TooltipParams = item.TooltipParams;
            Stats = item.Stats;
            Armor = item.Armor;
            Context = item.Context;
        }
    }
}